package cn.liuhuan1.blogsModel.service;


import cn.liuhuan1.blogsModel.dao.UserDaoImp;
import cn.liuhuan1.webModelBean.api.UserImp;
import cn.liuhuan1.webModelBean.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: liuhuan
 * @Date: 2021/1/25 - 01 - 25 - 13:07
 * @Description:
 * @version: 1.0
 */
@Service
public class UserService implements UserImp {

    @Autowired
    private UserDaoImp userDaoImp;

    @Override
    public UserVo selectByName(String name) {
        UserVo userVo = userDaoImp.selectByName(name);
        return userVo;
    }

    @Override
    public void insert(UserVo userVo) {
        userDaoImp.insert(userVo);
    }
}
